package ac.il.technion.cs236369.hw5.core.servlets.instruments;

import ac.il.technion.cs236369.hw5.core.entities.Instrument;

public class InstrumentEnvelope {
	private int id;
	private String type;
	private String description;
	private int timeSlot;
	private double usagePrice;
	private String role;
	
	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public InstrumentEnvelope( int id, String type, String desc, int timeSlot, double usagePrice, String role) {
		this.id = id;
		this.type = type;
		this.description = desc;
		this.timeSlot = timeSlot;
		this.usagePrice = usagePrice;
		this.role = role;
	}
	
	public InstrumentEnvelope(Instrument ins) {
		this( ins.getId(), ins.getType(), ins.getDescription(), ins.getTimeSlot( ), ins.getUsagePrice( ), ins.getPermission().getRole());
	}

	
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getTimeSlot() {
		return timeSlot;
	}
	public void setTimeSlot(int timeSlot) {
		this.timeSlot = timeSlot;
	}
	public double getUsagePrice() {
		return usagePrice;
	}
	public void setUsagePrice(double usagePrice) {
		this.usagePrice = usagePrice;
	}
	
	
}
